/* 初始化样式
------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	outline: none !important;
}

:root {
	--next-color-white: #ffffff;
	--next-bg-main-color: #f8f8f8;
	--next-bg-color: #f5f5ff;
	--next-border-color-light: #f1f2f3;
	--next-color-primary-lighter: #ecf5ff;
	--next-color-success-lighter: #f0f9eb;
	--next-color-warning-lighter: #fdf6ec;
	--next-color-danger-lighter: #fef0f0;
	--next-color-dark-hover: #0000001a;
	--next-color-menu-hover: rgba(0, 0, 0, 0.2);
	--next-color-user-hover: rgba(0, 0, 0, 0.04);
	--next-color-seting-main: #e9eef3;
	--next-color-seting-aside: #d3dce6;
	--next-color-seting-header: #b3c0d1;
	--next-basic-mask-color: #fdfdfd;
	--next-basic-mask-background: rgba(38, 38, 38, 0.7);
	--next-basic-color: #737182;
	--sd-title: #262626;
	--sd-subtitle: #434343;
	--sd-font: #595959;
	--sd-subfont: #8c8c8c;
	--sd-place: #bfbfbf;
	--sd-border: #d9d9d9;
	--sd-border-secondary: #f0f0f0;
	--sd-space: #f3f3f3;
	--sd-table-header-bg: #f5f5f5;
	--sd-table-striped: #f9f9f9;
	--sd-page-background: #f0f0f4;
	--sd-card-background: #fdfdfd;
	--sd-background-assist: #fdfdfd;
	--sd-bg-assist-1: #e7e7ea;
	--sd-box-shadow: rgba(0, 0, 0, 0.24);
	--sd-mask-background: rgba(253, 253, 253, 0.8);
	--sd-footer-bg: #2c2c2c;
	--sd-footer-color: #c2c2c2;
	--sd-footer-color-1: #525252;
}

html,
body,
#app {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino sdns GB, Microsoft YaHei, SimSun, sdns-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	background-color: var(--next-bg-main-color);
	font-size: 14px;
	overflow: hidden;
	position: relative;
}

/* 主布局样式
------------------------------- */
.layout-container {
	width: 100%;
	height: 100%;

	.layout-pd {
		padding: 15px !important;
	}

	.layout-flex {
		display: flex;
		flex-direction: column;
		flex: 1;
	}

	.layout-aside {
		background: var(--next-bg-menuBar);
		box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
		height: inherit;
		position: relative;
		z-index: 1;
		display: flex;
		flex-direction: column;
		overflow-x: hidden !important;

		.el-scrollbar__view {
			overflow: hidden;
		}
	}

	.layout-header {
		padding: 0 !important;
		height: auto !important;
	}

	.layout-main {
		padding: 0 !important;
		overflow: hidden;
		width: 100%;
		background-color: var(--next-bg-main-color);
		display: flex;
		flex-direction: column;
		// 内层 el-scrollbar样式，用于界面高度自适应（main.vue）
		.layout-main-scroll {
			@extend .layout-flex;

			.layout-parent {
				@extend .layout-flex;
				position: relative;
				height: 100%;
			}
		}
	}

	// 用于界面高度自适应

	.layout-padding-no-left {
		@extend .layout-pd;
		position: absolute;
		top: 0;
		height: 100%;
		overflow: hidden;
		@extend .layout-flex;
		&-auto {
			height: inherit;
			@extend .layout-flex;
		}

		&-view {
			background: var(--el-color-white);
			width: 100%;
			height: 100%;
			border-radius: 4px;
			border: 1px solid var(--el-border-color-light, #ebeef5);
			overflow: hidden;
		}
	}
	.layout-padding {
		@extend .layout-pd;
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		overflow: hidden;
		@extend .layout-flex;

		&-auto {
			height: inherit;
			@extend .layout-flex;
		}

		&-view {
			background: var(--el-color-white);
			width: 100%;
			height: 100%;
			border-radius: 4px;
			border: 1px solid var(--el-border-color-light, #ebeef5);
			overflow: hidden;
		}
	}

	// 用于界面高度自适应，主视图区 main 的内边距，用于 iframe
	.layout-padding-unset {
		padding: 0 !important;

		&-view {
			border-radius: 0 !important;
			border: none !important;
		}
	}

	// 用于设置 iframe loading 时的高度（loading 垂直居中显示）
	.layout-iframe {
		.el-loading-parent--relative {
			height: 100%;
		}
	}

	.el-scrollbar {
		width: 100%;
	}

	.layout-el-aside-br-color {
		border-right: 1px solid var(--el-border-color-light, #ebeef5);
	}

	// pc端左侧导航样式
	.layout-aside-pc-220 {
		width: 220px !important;
		transition: width 0.3s ease;
	}

	.layout-aside-pc-64 {
		width: 64px !important;
		transition: width 0.3s ease;
	}

	.layout-aside-pc-1 {
		width: 1px !important;
		transition: width 0.3s ease;
		position: relative;
		left: -1px;
	}

	// 手机端左侧导航样式
	.layout-aside-mobile {
		position: fixed;
		top: 0;
		left: -220px;
		width: 220px;
		z-index: 9999999;
	}

	.layout-aside-mobile-close {
		left: -220px;
		transition: all 0.3s cubic-bezier(0.39, 0.58, 0.57, 1);
	}

	.layout-aside-mobile-open {
		left: 0;
		transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	.layout-aside-mobile-mode {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9999998;
		animation: error-img 0.3s;
	}

	.layout-mian-height-50 {
		height: calc(100vh - 50px);
	}

	.layout-columns-warp {
		flex: 1;
		display: flex;
		overflow: hidden;
	}

	.layout-hide {
		display: none;
	}

	.layout-scroll-padding {
		overflow: scroll;
	}
}

/* element plus 全局样式
------------------------------- */
.layout-breadcrumb-seting {
	.el-divider {
		background-color: rgb(230, 230, 230);
	}
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
	.bar {
		background: var(--el-color-primary) !important;
		z-index: 9999999 !important;
	}
}

/* flex 弹性布局
------------------------------- */
.flex {
	display: flex;
}

.flex-auto {
	flex: 1;
	overflow: hidden;
}

.flex-center {
	@extend .flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
}

.flex-center-content {
	@extend .flex;
	justify-content: center;
	align-items: center;
}

.flex-margin {
	margin: auto;
}

.flex-warp {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	margin: 0 -5px;

	.flex-warp-item {
		padding: 5px;

		.flex-warp-item-box {
			width: 100%;
			height: 100%;
		}
	}
}

.flex-between {
	justify-content: space-between;
}

/* cursor 鼠标形状
------------------------------- */
// 默认
.cursor-default {
	cursor: default !important;
}

// 帮助
.cursor-help {
	cursor: help !important;
}

// 手指
.cursor-pointer {
	cursor: pointer !important;
}

// 移动
.cursor-move {
	cursor: move !important;
}

/* 宽高 100%
------------------------------- */
.w100 {
	width: 100% !important;
}

.h100 {
	height: 100% !important;
}

.vh100 {
	height: 100vh !important;
}

.max100vh {
	max-height: 100vh !important;
}

.min100vh {
	min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
	color: var(--el-color-primary);
}

.color-success {
	color: var(--el-color-success);
}

.color-warning {
	color: var(--el-color-warning);
}

.color-danger {
	color: var(--el-color-danger);
}

.color-info {
	color: var(--el-color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
	.font#{$i} {
		font-size: #{$i}px !important;
	}
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 100 {
	.mar#{$i} {
		margin: #{$i}px !important;
	}
	.mt#{$i} {
		margin-top: #{$i}px !important;
	}
	.mr#{$i} {
		margin-right: #{$i}px !important;
	}
	.mb#{$i} {
		margin-bottom: #{$i}px !important;
	}
	.ml#{$i} {
		margin-left: #{$i}px !important;
	}
	.par#{i} {
		padding: #{$i}px !important;
	}
	.pt#{$i} {
		padding-top: #{$i}px !important;
	}
	.pr#{$i} {
		padding-right: #{$i}px !important;
	}
	.pb#{$i} {
		padding-bottom: #{$i}px !important;
	}
	.pl#{$i} {
		padding-left: #{$i}px !important;
	}
}

// 边框样式
@for $i from 1 through 100 {
	.bd#{$i} {
		border: #{$i}px solid var(--next-border-color-light);
	}

	.bdl#{$i} {
		border-left: #{$i}px solid var(--next-border-color-light);
	}

	.bdt#{$i} {
		border-top: #{$i}px solid var(--next-border-color-light);
	}

	.bdr#{$i} {
		border-right: #{$i}px solid var(--next-border-color-light);
	}

	.bdb#{$i} {
		border-bottom: #{$i}px solid var(--next-border-color-light);
	}
}

.table-form-btn-toggle {
	white-space: nowrap;
	user-select: none;
	display: flex;
	align-items: center;
	color: var(--el-color-primary);
}

.search {
	background-color: white;
	padding: 0 16px;
}

.custom-dialog {
	padding: 0 !important;
}

.el-dialog.custom-dialog .el-dialog__header {
	padding: 0 16px;
	height: 44px;
	line-height: 44px;
	margin: 0;
	border-bottom: 1px solid #d9d9d9;
}

.custom-dialog-body {
	flex: 1;
	display: flex;
	flex-direction: column;

	.main {
		flex: 1;
		padding: 20px;
	}

	.footer--submit {
		width: 100%;
		--el-footer-height: auto !important;
		padding: 7px 16px !important;
		border-top: 1px solid #d9d9d9;
		text-align: right !important;
	}
}

.choice-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	width: 50px;
	cursor: pointer;
	border: 1px dashed var(--el-border-color-darker);

	&:hover {
		border: 1px dashed var(--el-color-primary);
	}
}

.choice-image-delete {
	position: relative;
}

.choice-image-delete .delete-content {
	position: absolute;
	display: none;
	justify-content: center;
	align-items: center;
	height: 20px;
	width: 100%;
	bottom: 0px;
	left: 0px;
	background-color: var(--next-basic-mask-background);
	color: var(--next-basic-mask-color);
	// background-color: rgba(var(--next-bg-color), 0.8);
	// background-color: var(--next-bg-color);
	// opacity: 0.9;
	// background-color: rgba(var(--next-bg-color));
}

.choice-image-delete:hover {
	.delete-content {
		display: flex;
	}
}

.el-popper.custom-popper {
	min-width: unset;
	width: fit-content !important;
}

.custom-form-item .el-form-item__content {
	margin-left: 0px !important;
}

#pane-stock_price {
	padding-bottom: 20px;
}

.slider-content {
	width: 100%;
	height: 100%;
}

.slider-tree {
	width: 100%;
	overflow-y: auto;
	overflow-x: auto;
	height: 100%;
	//height: calc(100vh - 160px);
}

.decorate-card {
	margin: 10px 0px;

	.title {
		height: 40px;
		line-height: 40px;
		background: #f5f5f5;
		margin-bottom: 16px;
		padding: 0 20px;
		font-size: 14px;
		color: #434343;
		display: flex;
		align-items: center;
	}
}

.list-item {
	position: relative;
	margin: 10px 0px;

	.name {
		line-height: 16px;
		font-size: 12px;
		font-weight: 400;
		color: #262626;
	}

	.content {
		line-height: 16px;
		font-size: 12px;
		font-weight: 500;
		color: #8c8c8c;
	}

	.el-icon-circle-close {
		position: absolute;
		right: -10px;
		top: -10px;
		// cursor: pointer;
		font-size: 20px;
		display: none;
	}
}

.list-item:hover {
	background-color: rgba(210, 218, 226, 1);
	cursor: pointer;

	.el-icon-circle-close {
		display: block;
	}
}

.sd-image {
	width: 100%;
	height: 120px;
}

.sd-image .image {
	height: 100%;
	width: 100%;
}

.sd-flex {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.sd-flex-wrap {
	flex-wrap: wrap;
}

.sd-row-center {
	justify-content: center;
}

.decorate-card content {
	padding: 10px 20px;
}

.decorate-card .content .goods-item {
	margin: 0 8px 16px 0;
	position: relative;
	width: 44px;
	height: 44px;
}

.decorate-card .content .goods-item .goods-delete {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	font-size: 16px;
	color: var(--next-basic-mask-color);
	background: var(--next-basic-mask-background);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.decorate-card .content .goods-item:hover .goods-delete {
	display: flex;
}

.tip {
	height: 14px;
	line-height: 14px;
	font-size: 12px;
	color: #999;
	margin-left: 4px;
}

.cover-image {
	width: 100%;
	height: 100%;
}

.sd-flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.sd-title {
	line-height: 56px;
	font-size: 16px;
}

.image-delete {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	font-size: 16px;
	color: var(--next-basic-mask-color);
	background: var(--next-basic-mask-background);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

// 页面头部操作及标题栏

.review-list-title {
	padding: 15px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
	height: 50px;
}

.review-list-title-end {
	padding: 15px 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	background-color: #fff;
	height: 50px;
}

.review-list-title-start {
	padding: 15px 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	background-color: #fff;
	height: 50px;
}

.title-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.standard-container {
	// background-color: #fff;
	border-radius: 4px;
}

.pagination-container {
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #fff;
	height: 50px;
}

.pagination-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pagination-total {
	margin-right: 10px;
}

// .table-container {
// 	flex: 1;
// 	overflow-y: auto;
// }
